<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 800px;
            height: 80px;

        }

        span {
            /* 因为背景图的大小时120*58所以每个span的宽度设置成120*58 */
            width: 120px;
            height: 58px;
            line-height: 48px;
            text-align: center;
            color: white;
            /* 你写的百分比的宽度高度需要删除 */
        }

        .s1 {
            background-image: url(./images/bg1.png);
            display: inline-block;

            background-repeat: no-repeat;
            text-align: center;
        }

        div .s1:hover {
            background-image: url(./images/bg5.png);
        }

        .s2 {
            background-image: url(./images/bg2.png);
            display: inline-block;

            background-repeat: no-repeat;
        }

        div .s2:hover {
            background-image: url(./images/bg6.png);

        }

        .s3 {
            background-image: url(./images/bg3.png);
            display: inline-block;

            background-repeat: no-repeat;
        }

        div .s3:hover {
            background-image: url(./images/bg7.png);
        }

        .s4 {
            background-image: url(./images/bg4.png);
            display: inline-block;

            background-repeat: no-repeat;
        }

        div .s4:hover {
            background-image: url(./images/bg8.png);
        }
    </style>
</head>

<body>
    <div>
        <span class="s1" margin: auto;>五彩导航</span>
        <span class=" s2">五彩导航</span>
        <span class="s3">五彩导航</span>
        <span class="s4">五彩导航</span>
    </div>
</body>

</html>